/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Ajedrez;

import Herramientas.Conversor;

/**
 *
 * @author Carlos
 */
public class Posicion {
    private int posX = -1;
    private int posY = -1;

    public Posicion() {
    }
    
    public Posicion(int posX, int posY) {
        this.posX = posX;
        this.posY = posY;
    }

    public int getPosX() {
        return posX;
    }

    public void setPosX(int posX) {
        this.posX = posX;
    }

    public int getPosY() {
        return posY;
    }

    public void setPosY(int posY) {
        this.posY = posY;
    }
    
    @Override
    public String toString(){
        return Conversor.letra(posY)+"-"+(8-posX);
    }
    
}
